// build.js
const esbuild = require( 'esbuild');



esbuild.build({
  //用户替换自己的脚本文件路径
  entryPoints: ["./src/index.ts"],
  //输出文件路径
  outfile: "./out/index.js",
  bundle: true,
  platform: "node",
  format: "cjs",
  external: ["fetch", "fs", "path", "os", "child_process"],
  sourcemap: true,
});